package com.akkainaction.remote.router;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.routing.FromConfig;
import com.typesafe.config.ConfigFactory;

public class Main {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys", ConfigFactory.load("remote-client.conf"));
        ActorRef router = system.actorOf(FromConfig.getInstance().props(), "userServerActor");
        router.tell("hello",ActorRef.noSender());
    }
}
